/**
 * Skeleton for the pieces class
 */
import javax.swing.JLabel;

class Pieces{
	private int id;
	private int x,y;
	private String color;
	private Boolean removable;
	private Boolean deadlocked;

	private JLabel label;
	
	public Pieces(boolean removable, JLabel label, boolean deadlocked) {
        this.removable = removable;
        this.label = label;
        this.deadlocked = deadlocked;

    }

	public JLabel getLabel() {
		return label;
	}

	public void setLabel(JLabel label) {
		this.label = label;
	}

	public Boolean getRemovable() {
		return removable;
	}

	public void setRemovable(Boolean removable) {
		this.removable = removable;
	}
	
	public Boolean getDeadlocked() {
		return deadlocked;
	}

	public void setDeadlocked(Boolean deadlocked) {
		this.deadlocked = deadlocked;
	}
   
	
	public void move(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public void place(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public void jump(int x, int y){
		this.x = x;
		this.y = y;
		
	}
	
	public void die(JLabel boardholder,JLabel pieces){
		boardholder.remove(pieces);
	}
	
}